<template>
	<view class="outside">
		<view class="content">
			<singleMenu class="singleMenu" v-for="(item,index) in list" :name="item.name" :icon="item.icon"
				:color="item.bgColor" :page="item.page">
			</singleMenu>
		</view>
	</view>
</template>

<script>
	import singleMenu from './singleMenu.vue'
	export default {
		components: {
			singleMenu
		},
		props: {
			list: Array,
			type: Number
		},
	}
</script>

<style>
	.outside {
		padding: 40rpx 20rpx;
		width: calc(100% - 40rpx);
		height: auto;
		border-top: 1rpx #eee solid;
	}

	.content {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		height: auto;
	}

	.singleMenu {
		width: 25%;
		height: 160rpx;
	}
</style>
